<template>
    <div class="da">
      <router-view/>
      <router-view name="footer">
        <van-tabbar v-model="active" route>
  <van-tabbar-item name="home" icon="home-o" to="/index">首页</van-tabbar-item>
  <van-tabbar-item name="search" icon="search" to="/kind">分类</van-tabbar-item>
  <van-tabbar-item name="friends" icon="friends-o" to="/shop">购物车</van-tabbar-item>
  <van-tabbar-item name="setting" icon="setting-o" to="/user">我的</van-tabbar-item>
</van-tabbar>
      </router-view>
    </div>
    
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>
<style lang="scss">
    *{
      padding: 0;
      margin: 0;
      list-style: none;
    }
    .da{
      width: 100%;
      height: 100%;
    }
    html,
    body,
    #app,
    .da{
      flex-direction: column;
      overflow: auto;
      background-color: white;
    }
    .box{
      flex-direction: column;
      overflow: auto;
      flex: 1;
      display: flex;
    }
    .header{
      overflow: auto;
      height: 50px;
    }
    .meddle{
      height: 50px;
      overflow: auto;
    }
    .footer{
      height: 50px;
    }
</style>
